﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Evision.Zlsoft.Miaiap.Core.Model {
         [XmlRoot("details_xml")]
    public class InputRevokeApproval
    {
        [XmlElement("hosp_flag")]
        public string hospitalizationFlag { get; set; }

        [XmlElement("treat_code")]
        public string treatmentCode { get; set; }

        [XmlArray("prescription_data")]
        [XmlArrayItem("prescription")]
        public List<RePrescription> prescriptionData { get; set; }
    }

    public class RePrescription {
        [XmlElement("id")]
        public string prescriptionId { get; set; }

        [XmlElement("medicine_data")]
        public MedicineData medicineData { get; set; }
    }

    public class MedicineData
    {
        [XmlElement("medicine")]
        public Medicine medicine { get; set; }
    }

    public class ReMedicine
    {
        [XmlElement("his_code")]
        public string hisCode { get; set; }
    }
    
}
